import { get, post } from "@/utils/request";

// 用户注册
export const register = (data) => {
  return post("/api/register/registerSms", data);
};

// 用户账号密码登录
export const loginByAccount = (data) => {
  return post("/api/lin/mm", data);
};

// 发送验证码
export const sendCode = (data) => {
  return post("/api/sendVCode/se", data);
};

// 验证码登录
export const loginByCode = (data) => {
  return post("/api/lin/my", data);
};

// 验证码注册
export const registerByCode = (data) => {
  return post("/api/register/registerSms", data);
};

// 查询店铺列表
export const getStoreList = (data) => {
  return post("/shop/bdm/mls", data);
};

// 获取各区数据
export const getAreaData = (data) => {
  return get("/api/area/getArea", data);
};

// 获取各市数据
export const getCityData = (data) => {
  return get("/api/area/getCity", data);
};

// 获取各省数据
export const getProvinceData = (data) => {
  return get("/api/area/getProvince", data);
};

// 查询创客信息
export const getCreatorInfo = (data) => {
  return post("/maker/ma/makerInfo", data);
};

// 查询商圈分类
export const getBusinessCircleCategory = (data) => {
  return post("/shop/bdc/cL", data);
};

// 切换店铺
export const switchStore = (data) => {
  return post("/shop/bdm/mlog", data);
};

// 申请成为商户
export const applyToBeMerchant = (data) => {
  return post("/shop/subscribersMerchant/apply", data);
};
